<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
      <title>GTL - Graph Template Library: gml_parser.h Source File</title>
      <link href="doxygen.css" rel="stylesheet" type="text/css">
  </head>
  <body>
    <p class="links">  
      <a href="../index.html">Home</a> |
      Documentation |
      <a href="../register.html">Download</a> |
      <a href="../platforms.html">Platforms</a> |
      <a href="../refer.html">Projects</a> |      
      <a href="../lists.html">Mailing Lists</a> |
      <a href="../history.html">Version History</a>
    </p>

<!-- Generated by Doxygen 1.5.3 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="classes.html"><span>Classes</span></a></li>
    <li class="current"><a href="files.html"><span>Files</span></a></li>
    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
  </ul>
</div>
<h1>gml_parser.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">//==========================================================================</span>
<a name="l00002"></a>00002 <span class="comment">//</span>
<a name="l00003"></a>00003 <span class="comment">//   gml_parser.h </span>
<a name="l00004"></a>00004 <span class="comment">//</span>
<a name="l00005"></a>00005 <span class="comment">//==========================================================================</span>
<a name="l00006"></a>00006 <span class="comment">// $Id: gml_parser.h,v 1.7 2000/01/05 16:32:36 raitner Exp $</span>
<a name="l00007"></a>00007 
<a name="l00008"></a>00008 <span class="preprocessor">#ifndef GTL_GML_PARSER_H</span>
<a name="l00009"></a>00009 <span class="preprocessor"></span><span class="preprocessor">#define GTL_GML_PARSER_H</span>
<a name="l00010"></a>00010 <span class="preprocessor"></span>
<a name="l00011"></a>00011 <span class="preprocessor">#include &lt;GTL/GTL.h&gt;</span>
<a name="l00012"></a>00012 <span class="preprocessor">#include &lt;GTL/gml_scanner.h&gt;</span>
<a name="l00013"></a>00013 
<a name="l00014"></a>00014 __GTL_BEGIN_NAMESPACE
<a name="l00015"></a>00015 
<a name="l00019"></a>00019 <span class="keyword">union </span>GTL_EXTERN GML_pair_val {
<a name="l00020"></a>00020     <span class="keywordtype">long</span> integer;
<a name="l00021"></a>00021     <span class="keywordtype">double</span> floating;
<a name="l00022"></a>00022     <span class="keywordtype">char</span>* str;
<a name="l00023"></a>00023     <span class="keyword">struct </span>GML_pair* list;
<a name="l00024"></a>00024 };
<a name="l00025"></a>00025 
<a name="l00029"></a>00029 <span class="keyword">struct </span>GTL_EXTERN GML_pair {
<a name="l00030"></a>00030     <span class="keywordtype">char</span>* key;
<a name="l00031"></a>00031     GML_value kind;
<a name="l00032"></a>00032     <span class="keyword">union </span>GML_pair_val value;
<a name="l00033"></a>00033     <span class="keyword">struct </span>GML_pair* next;
<a name="l00034"></a>00034 };
<a name="l00035"></a>00035 
<a name="l00039"></a>00039 <span class="keyword">struct </span>GTL_EXTERN GML_list_elem {
<a name="l00040"></a>00040     <span class="keywordtype">char</span>* key;
<a name="l00041"></a>00041     <span class="keyword">struct </span>GML_list_elem* next;
<a name="l00042"></a>00042 };
<a name="l00043"></a>00043 
<a name="l00047"></a>00047 <span class="keyword">struct </span>GTL_EXTERN GML_stat {
<a name="l00048"></a>00048     <span class="keyword">struct </span><a class="code" href="a00013.html" title="Reason and position of an error in a GML file.">GML_error</a> err;
<a name="l00049"></a>00049     <span class="keyword">struct </span>GML_list_elem* key_list;
<a name="l00050"></a>00050 };
<a name="l00051"></a>00051 
<a name="l00052"></a>00052 <span class="comment">/*</span>
<a name="l00053"></a>00053 <span class="comment"> * returns list of KEY - VALUE pairs. Errors and a pointer to a list</span>
<a name="l00054"></a>00054 <span class="comment"> * of key-names are returned in GML_stat. Previous information contained</span>
<a name="l00055"></a>00055 <span class="comment"> * in GML_stat, i.e. the key_list, will be *lost*. </span>
<a name="l00056"></a>00056 <span class="comment"> */</span>
<a name="l00057"></a>00057 
<a name="l00058"></a>00058 GTL_EXTERN GML_pair* GML_parser (FILE*, GML_stat*, <span class="keywordtype">int</span>);
<a name="l00059"></a>00059 
<a name="l00060"></a>00060 <span class="comment">/*</span>
<a name="l00061"></a>00061 <span class="comment"> * free memory used in a list of GML_pair</span>
<a name="l00062"></a>00062 <span class="comment"> */</span>
<a name="l00063"></a>00063 
<a name="l00064"></a>00064 GTL_EXTERN <span class="keywordtype">void</span> GML_free_list (GML_pair*, GML_list_elem*);
<a name="l00065"></a>00065 
<a name="l00066"></a>00066 
<a name="l00067"></a>00067 <span class="comment">/*</span>
<a name="l00068"></a>00068 <span class="comment"> * debugging </span>
<a name="l00069"></a>00069 <span class="comment"> */</span>
<a name="l00070"></a>00070 
<a name="l00071"></a>00071 GTL_EXTERN <span class="keywordtype">void</span> GML_print_list (GML_pair*, <span class="keywordtype">int</span>);
<a name="l00072"></a>00072 
<a name="l00073"></a>00073 __GTL_END_NAMESPACE
<a name="l00074"></a>00074 
<a name="l00075"></a>00075 <span class="preprocessor">#endif // GTL_GML_PARSER_H</span>
<a name="l00076"></a>00076 <span class="preprocessor"></span>
<a name="l00077"></a>00077 <span class="comment">//--------------------------------------------------------------------------</span>
<a name="l00078"></a>00078 <span class="comment">//   end of file</span>
<a name="l00079"></a>00079 <span class="comment">//--------------------------------------------------------------------------</span>
</pre></div>    <p class="links">
      <a href="http://www.uni-passau.de/">University of Passau</a>
      &nbsp;-&nbsp;
      <a href="http://www.fmi.uni-passau.de/">FMI</a>
      &nbsp;-&nbsp;
      <a href="http://www.fmi.uni-passau.de/fmi/lehrstuehle/brandenburg/">Theoretical
	Computer Science</a>
    </p>
  <div class="copyright">
      Design &copy; 2002, 2003 <a href="mailto:raitner@fmi.uni-passau.de">Marcus Raitner</a>,  University of Passau 
  </div>
</body>
</html>
